package com.chao.sentinel.client;

import com.chao.sentinel.client.fallback.FeignFallbackService;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author : Rookie
 * @description :
 * @date : 2022/5/30
 */
@FeignClient(name = "feign-test",fallback = FeignFallbackService.class)
public interface FeignTestClient {

    @GetMapping("/api/getOrder")
    String getOrder(@RequestParam("orderId") String orderId);
}
